//
//  GSDKDatabaseManager.h
//  GameSDK
//
//  Created by Johnny on 2017/7/31.
//  Copyright © 2017年 Johnny. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GSDKProduct.h"
#import "GSDKUserAccountModel.h"

@class FMDatabase;
@interface GSDKDatabaseManager : NSObject {
    FMDatabase *_db;
}
+ (GSDKDatabaseManager *)shared;

- (NSArray *)selectUserWith:(NSString *)userName;

- (BOOL)insertUserWith:(GSDKUserAccountModel *)model;

- (BOOL)deleteUserWith:(GSDKUserAccountModel *)model;

- (NSArray *)selectAllIAP;

- (NSArray *)selectUnfinishedIAP;

- (NSArray *)selectIAPWith:(NSString *)iapID;

- (BOOL)insertIAPWith:(GSDKProduct *)model;
@end
